package DesignPattern.CreationalPattern.AbstractFactory;

public class AbstractFactoryDemo {
    public static void main(String[] args) {
        phoneFactory phoneFactory = new phoneFactory();
        Phone huawei = phoneFactory.createPhone("Huawei");
        Phone apple = phoneFactory.createPhone("Apple");
        System.out.println(huawei.call());
        System.out.println(apple.call());
        ComputerFactory computerFactory = new ComputerFactory();
        Computer computerH = computerFactory.createComputer("Huawei");
        Computer computerA = computerFactory.createComputer("Apple");
        System.out.println(computerH.internet());
        System.out.println(computerA.internet());
    }
}
